package class03.B;

/**
 * @author zl
 */
class A{
    int i;
}
class B{
    public static void main(String[] args) {
        int j=10;
        A a = new A();
        a.i=1;
        int k=0;
        while (k++<10){
            g(a,j);}

            System.out.println("j="+j);
            System.out.println("a.i="+a.i);
    }
    static void g(A a,int j){
        a.i+=j;
        j*=2;
    }
}